package com.smzd.framework.system.mappers;

import java.util.List;

import com.smzd.core.mappers.IMapper;
import com.smzd.framework.system.domain.Meeting;
import com.smzd.framework.system.domain.User;
import com.smzd.framework.utils.db.ORPage;

public interface UserMapper extends IMapper<User> {

    User getUserByName(String name);

    List<User> getAllOwners(int ownerId);

    List<User> getUsersByGroupId(Integer groupId);

    void updateUserOwner(User user);

    void updatePassword(User user);

	List<User> getUsersWithGroups(ORPage<Meeting, User> page);

	int getUsersCountWithGroups(ORPage<Meeting, User> page);

}
